<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| Sys Constants
|--------------------------------------------------------------------------
*/
define('WEB_NAME',      	'admin·TCFS');
define('WEB_URL',       	'http://bkd.tcfschina.com');
define('WEB_COPYRIGHT', 	'Copyright 2013 tgfs.com Inc. All rights reserved.');
define('WEB_THEME',     	'default');
define('WEB_VERSION',   	'v1.0');
define('WEB_ADMIN_EMAIL',   'spike@myxiequ.com');


define('JS_VERSION',    '131227');
define('CSS_VERSION',   '131227');

/*
|--------------------------------------------------------------------------
| Domain Constants
|--------------------------------------------------------------------------
*/
define('DOMAIN',            	'http://bkd.tcfschina.com/');
define('JS_DOMAIN',         	'http://bkd.tcfschina.com/theme/'.WEB_THEME.'/js/');
define('CSS_DOMAIN',        	'http://bkd.tcfschina.com/theme/'.WEB_THEME.'/css/');
define('IMG_DOMAIN',        	'http://bkd.tcfschina.com/theme/'.WEB_THEME.'/image/');
define('DATA_DOMAIN',       	'http://bkd.tcfschina.com/data/');
define('FRONTEND_DATA_DOMAIN',  'http://www.tcfschina.com/data/');

/*
|--------------------------------------------------------------------------
| File System Constants
|--------------------------------------------------------------------------
*/
define('DATA_PATH',          FCPATH.'data/');
define('TEMP_PATH',          str_replace("\\", "/", realpath(APPPATH.'temp')."/"));
define('FRONTEND_DATA_PATH', str_replace("\\", "/", realpath(FCPATH.'../frontend/data/')."/"));

/*
|--------------------------------------------------------------------------
| CI File System Constants
|--------------------------------------------------------------------------
*/
define('FILE_READ_MODE', 0644);
define('FILE_WRITE_MODE', 0666);
define('DIR_READ_MODE', 0755);
define('DIR_WRITE_MODE', 0777);

define('FOPEN_READ',                            'rb');
define('FOPEN_READ_WRITE',                      'r+b');
define('FOPEN_WRITE_CREATE_DESTRUCTIVE',        'wb'); // truncates existing file data, use with care
define('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE',   'w+b'); // truncates existing file data, use with care
define('FOPEN_WRITE_CREATE',                    'ab');
define('FOPEN_READ_WRITE_CREATE',               'a+b');
define('FOPEN_WRITE_CREATE_STRICT',             'xb');
define('FOPEN_READ_WRITE_CREATE_STRICT',        'x+b');

/*
|--------------------------------------------------------------------------
| 所有表 删除状态
|--------------------------------------------------------------------------
*/
define('DELETED',   'Y');
define('UNDELETED', 'N');

/*
|--------------------------------------------------------------------------
| Role 表
|--------------------------------------------------------------------------
*/
define('ROLE_STATUS_ON',       1);
define('ROLE_STATUS_OFF',      99);

/*
|--------------------------------------------------------------------------
| Role_perm 表
|--------------------------------------------------------------------------
*/
define('ROLE_PRIV_ON',       'Y');
define('ROLE_PRIV_OFF',      'N');

/*
|--------------------------------------------------------------------------
| Role_resource 表
|--------------------------------------------------------------------------
*/
define('ROLE_RESOURCE_GROUP_ADMIN', 'ADMIN');
define('ROLE_RESOURCE_GROUP_EDIT',  'EDIT');
define('ROLE_RESOURCE_GROUP_VIEW',  'VIEW');

/*
|--------------------------------------------------------------------------
| Notice 表
|--------------------------------------------------------------------------
*/
define('NOTICE_TYPE_INFO',       'INFO');
define('NOTICE_TYPE_WARNING',    'WARNING');
define('NOTICE_TYPE_IMPORTANT',  'IMPORTANT');


/*
|--------------------------------------------------------------------------
| Admin 表
|--------------------------------------------------------------------------
*/
define('ADMIN_STATUS_ON',       1);
define('ADMIN_STATUS_OFF',      99);
define('ADMIN_GENDER_MALE',     'MALE');
define('ADMIN_GENDER_FEMALE',   'FEMALE');
define('ADMIN_GENDER_UNKNOWN',  'UNKNOWN');

/*
|--------------------------------------------------------------------------
| Member 表
|--------------------------------------------------------------------------
*/
define('MEMBER_STATUS_ON',       1);
define('MEMBER_STATUS_OFF',      99);
define('MEMBER_GENDER_MALE',     'MALE');
define('MEMBER_GENDER_FEMALE',   'FEMALE');
define('MEMBER_GENDER_UNKNOWN',  'UNKNOWN');

/*
|--------------------------------------------------------------------------
| Brand 表
|--------------------------------------------------------------------------
*/
define('BRAND_STATUS_ON',       1);
define('BRAND_STATUS_OFF',      99);

/*
|--------------------------------------------------------------------------
| Category 表
|--------------------------------------------------------------------------
*/
define('CATEGORY_STATUS_ON',   1);
define('CATEGORY_STATUS_OFF',  99);

define('CATEGORY_MAX_DEPTH',   2);	// 分类最多层级，最少为1层


/*
|--------------------------------------------------------------------------
| Goods 表
|--------------------------------------------------------------------------
*/
define('GOODS_STATUS_ON',   1);
define('GOODS_STATUS_OFF',  99);

define('GOODS_TYPE_NORMAL',   1); //普通商品

define('GOODS_DESC_TYPE_NORMAL',   1); //普通描述

/*
|--------------------------------------------------------------------------
| Attr_group 表
|--------------------------------------------------------------------------
*/
define('ATTR_GROUP_STATUS_ON',   1);
define('ATTR_GROUP_STATUS_OFF',  99);

/*
|--------------------------------------------------------------------------
| Attr 表
|--------------------------------------------------------------------------
*/
define('ATTR_STATUS_ON',   1);
define('ATTR_STATUS_OFF',  99);

/*
|--------------------------------------------------------------------------
| Attr_value 表
|--------------------------------------------------------------------------
*/
define('ATTR_VALUE_STATUS_ON',   1);
define('ATTR_VALUE_STATUS_OFF',  99);

/*
|--------------------------------------------------------------------------
| Comment 表
|--------------------------------------------------------------------------
*/
define('COMMENT_STATUS_WAIT', 1);
define('COMMENT_STATUS_ON',   2);
define('COMMENT_STATUS_OFF',  99);


/*
|--------------------------------------------------------------------------
| Trend 表
|--------------------------------------------------------------------------
*/
define('TREND_STATUS_ON', 1);
define('TREND_STATUS_OFF',  99);

/*
|--------------------------------------------------------------------------
| Beauty 表
|--------------------------------------------------------------------------
*/
define('BEAUTY_STATUS_ON',  1);
define('BEAUTY_STATUS_OFF', 99);

/* End of file constants.php */
/* Location: ./application/config/constants.php */